-- GENERATED SPELL FOR [Shadowsword Manafiend] --


function spell0_25483(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(46457,pUnit)
pUnit:RegisterEvent('Sorts_25483', 500, 1)
end

function spell1_25483(pUnit, Event) --@Drain Mana,n/a--
pUnit:FullCastSpellOnTarget(46453,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25483', 521, 1)
end

function Sorts_25483(pUnit, Event)
local choix_sorts_25483 = math.random(0, 1)
if choix_sorts_25483 == 0 then
pUnit:RegisterEvent('spell0_25483', 1, 1)
end
if choix_sorts_25483 == 1 then
pUnit:RegisterEvent('spell1_25483', 1, 1)
end
end

function mob25483_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25483', math.random(1500, 3000), 1)
end

function mob25483_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25483_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25483_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25483, 1, 'mob25483_Action')
RegisterUnitEvent(25483, 2, 'mob25483_Leave')
RegisterUnitEvent(25483, 3, 'mob25483_Kill')
RegisterUnitEvent(25483, 4, 'mob25483_Die')
